<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        //对象简写(方法名简写，可复用)
        let name='xcy'
        let obj={
            [name+"test1"](){

            },
            [name+"test2"](){
                
            }
        }
        // assign对象合并简写
        let objb={}
        let obj1={
            name2:"xcy"
        }
        let obj2={
            age:200
        }
        let obj3={
            name:'zxc'
        }
        console.log(Object.assign(objb,obj1,obj2,obj3))
        
        //相等判断 == ===
        console.log(Object.is(5,5))
        //parseInt强转为int判断是否为NaN
        console.log(Object.is(parseInt('xcy'),NaN))
    </script>
</body>
</html>